function Upload(doc, container, width, height, operator, now, options) {
  this._doc = doc;
  this._container = container;
  this._width = (width) ? width : '468';
  this._height = (height) ? height : '300';
  this._operator = operator;
  this._now = now;
  this._options = options;
  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbstractUpload.gui(this._unique, this._doc);
}

Upload.prototype._createElements = function() {
  var table, tr, td, input;
  
  var div1 = this._doc.createElement('div');
  div1.id = this._unique + '_containerBrowse_div1';
  div1.align = 'center';
  div1.style.width = this._width + 'px';
  this._container.appendChild(div1);
  
  table= this._doc.createElement('table');
  table.style.width = '467px';
  table.style.height =  (this._height - 60) + 'px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  div1.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.align = 'center';
  td.style.verticalAlign = 'bottom';
  td.style.height = '57px';
  var img = this._doc.createElement('img');
  img.src  ='image/upload/text1.png';
  td.appendChild(img);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.align = 'center';
  td.id = this._unique + '_upload_button';
  td.style.verticalAlign = 'middle';
  td.style.height = '108px';

  var div2 = this._doc.createElement('div');
  div2.id = this._unique + '_containerUploading_div2';
  div2.align = 'center';
  div2.style.width = '468px';
  this._container.appendChild(div2);
  
  table2 = this._doc.createElement('table');
  table2.style.width = '468px';
  table2.cellPadding = 0;
  table2.cellSpacing = 0;
  div2.appendChild(table2);
  
  tr2 = table2.insertRow(-1);
  td2 = tr2.insertCell(-1);
  td2.align = 'center';
  td2.style.verticalAlign= 'bottom';
  td2.style.height = '56px';
  var img = this._doc.createElement('img');
  img.src  ='image/upload/text2.png';
  td2.appendChild(img);
  
  tr2 = table2.insertRow(-1);
  td2 = tr2.insertCell(-1);
  td2.style.height = '11px';
  
  tr2 = table2.insertRow(-1);
  td2 = tr2.insertCell(-1);
  td2.align = 'center';
  td.style.height = '166px';
  td2.style.verticalAlign = 'middle';
  var uploaded = this._doc.createElement('table');
  uploaded.style.width = '412px';
  uploaded.style.height = '166px';
  uploaded.style.border = 'solid 1px #ccc';
  uploaded.id = this._unique + '_uploaded_table';
  td2.appendChild(uploaded);
  
  tr2 = table2.insertRow(-1);
  td2 = tr2.insertCell(-1);
  td2.align = 'center';
  td2.style.height = '28px';
  td2.style.verticalAlign = 'middle';
  var img = this._doc.createElement('img');
  img.src  ='image/upload/line.png';
  td2.appendChild(img);
 
  tr2 = table2.insertRow(-1);
  td2 = tr2.insertCell(-1);
  td2.align = 'center';
  td2.style.verticalAlign = 'middle';
  var uploading = this._doc.createElement('table');
  uploading.style.width = '412px';
  uploading.style.height = '61px';
  //uploading.style.border = 'solid 1px #ccc';
  uploading.style.margin = '0px 0 18px 0';
  uploading.id = this._unique + '_uploading_table';
  td2.appendChild(uploading);

};
